package com.springboot.controller;

import com.springboot.service.CustomerTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: TongRui乀
 * @Date: 2021/4/4 18:44
 * @description：
 */
@RestController
@RequestMapping("ticket")
public class CustomerTicketController {

    @Autowired
    private CustomerTicketService customerTicketService;


    @GetMapping("getById/{id}")
    public String getById(@PathVariable String id){
        return this.customerTicketService.getCustomerOrderIdById(id);
    }

}
